package com.bocim.course.service;

import com.bocim.course.dao.Productdao;
import com.bocim.course.dao.Userdao;
import com.bocim.course.meta.Orders;
import com.bocim.course.meta.Product;
import com.bocim.course.meta.User;
import com.bocim.course.serviceImp.IProductService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by liujunchen on 2016/11/14.
 */
public class testProductService     {
    public  static  void main(String[] args ){
        IProductService  productService = new ProductService()  ;
        Orders    orders   =  new Orders()  ;
        orders.setProductId(2);
        orders.setUserId(1);
        orders.setAmount(1);
        orders.setBuyPrice(20000);
        productService.buyProduct(orders );
    }
}
